export default (value) => {
  var date = new Date(value);
  return date.getFullYear() + '-' + ((date.getMonth() + 1) < 10 ? '0'+(date.getMonth() + 1) : (date.getMonth() + 1)) + '-' + (date.getDate() < 10 ? '0'+date.getDate() : date.getDate());
}
